package projet_v1.items.weapons;

import projet_v1.items.ammo.CategoryAmmo;
/**
 * This enum manages the CategoryAmmo.
 * 
 * @author Alexis Laurent
 * 
 */
public enum CategoryWeapon {
	SHOTGUN("Shotgun", CategoryAmmo.GAUGE), BAZOOKA("Bazooka", CategoryAmmo.ROCKET), WOODENSTAKE("Wooden stake"),LIQUIDNITRO("Liquid nitrogen");
	
	private String category;
	private CategoryAmmo typeAmmo;
	
	/**
     * Constructor of Bazooka enum.
     * 
     * @param category
     * 			: the category of the weapon
     */
	CategoryWeapon(String category) {
		this.category = category;
	}
	
	/**
     * Constructor of Bazooka enum.
     * 
     * @param category
     * 			: the category of the weapon
     * 
	 * @param typeAmmo
	 * 			: the type of the ammo
     */
	CategoryWeapon(String category, CategoryAmmo typeAmmo) {
		this.category = category;
		this.typeAmmo = typeAmmo;
	}
	
	// Accessors
	public CategoryAmmo getCategoryAmmo() {
		return typeAmmo;
	}
	
	public String toString() {
		return category;
	}

}
